home *** CD-ROM | disk | FTP | other *** search
/ Network Support Library / RoseWare - Network Support Library.iso / apidev / sc3x04.exe / CONNOPEN.DOC < prev    next >
Text File  |  1992-10-09  |  3KB  |  70 lines

  1.  
  2.  
  3.  
  4.  
  5.                           Get Connections Open Files
  6.  
  7.     This call returns information about the files currently open by
  8.     the specified connection number.  The call should be made itera-
  9.     tively.
  10.  
  11.     WARNING:  Using a connection number larger than the maximum number 
  12.               of connections supported by the server has been known to
  13.               cause ABENDS.
  14.             
  15.     Function 23 (17h)
  16.   
  17.     Request Buffer
  18.  
  19.         OfFset   Request Packet Contents        Bytes    Remarks
  20.         ------   ---------------------------    -----    -------
  21.         0        Sub-function Structure Len     2        Length
  22.         2        235 (EBh)                      1
  23.         3        Connection Number              2
  24.         5        Last Record Seen               2
  25.  
  26.     Reply Buffer
  27.  
  28.         Offset   Request Packet Contents        Bytes    Remarks
  29.         ------   ---------------------------    -----    -------
  30.         0        Next Request Record            2   
  31.         2        Number Returned                2        Max 28
  32.         4        Task Number 1                  2
  33.         6        Lock Type 1                    1        Following repeats
  34.         7        Access Control 1               1        number returned 
  35.         8        Lock Flag 1                    1        times.
  36.         9        Volume Number 1                1
  37.         10       Parent Dir. Entry Number 1     4
  38.         14       Dir Entry Number 1             4
  39.         18       Reserved 1                     1
  40.         19       Data Stream Type 1             1
  41.         20       File Name Length 1             1        
  42.         21       File Name 1                    12       Max 12
  43.         .        .                              .
  44.         .        .                              .
  45.         .        Task Number  n                 2
  46.         .        Lock Type  n                   1
  47.         .        Access Control  n              1
  48.         .        Lock Flag  n                   1
  49.         .        Volume Number  n               1
  50.         .        Parent Dir. Entry Number  n    4
  51.         .        Dir Entry Number  n            4
  52.         .        Reserved  n                    1
  53.         .        Data Stream Type  n            1
  54.         .        File Name Length  n            1        
  55.         .        File Name  n                   12       Max 12
  56.         .        .                              .
  57.                 
  58.     LastRecordSeen should be set to zero on the first call to this 
  59.     function.  LastRecordSeen should be incremented by numberReturned
  60.     on subsequent calls.
  61.  
  62.     ReplyBuffer values are as documented in the NetWare System Calls -
  63.     DOS, version 1.00.  The only exception is the Data Stream Type, which
  64.     is the name space of the affected file.
  65.  
  66.     A call to GetPathNameOfAVolumeDirectoryPair is required to get the
  67.     the full path for the open files.  This path is obtained by com-
  68.     bining the VolumeNumber and the DirectoryEntryNumber (sequence).
  69.  
  70.